#ifndef __GITEMS_H__
#define __GITEMS_H__

#include "Object.h"
#include "windows.h"
#include "Sprites.h"
#include "d3d9.h"
#include "d3dx9.h"
#include "QuadTree.h"
#include "GBonus.h"
#include "Bullet.h"
#include "Particle.h"
#include "GameState.h"
#include "Infomation.h"
#include <fstream>
using namespace std;

#define GRASS_W	35
#define GRASS_H	70

#define ITEMS_W		35
#define ITEMS_H		35


#define PIPE_W		70
#define PIPE_H		140
#define PIPE_M_H	105



class CItem: public Object
{
private:

	bool						_check;
	int							_posOld;
	int							_amountCoin;
	static LPDIRECT3DTEXTURE9	_itemImage;
public:
	QuadTree*	_quadTree;
	CItem(){};
	static void InitResoure(){_itemImage=CSprites::LoadTexture("Images\\\Items.png",0);}

	CItem(int left,int top,int kind,int secret,QuadTree *q,SOUND *sManager);
	~CItem(void);
	void Collision(Object *Ob);
	void Draw(int VirtualLeft,int Style);
	int Move();
	void Release(){}
};
#endif